package org.scirp.ijmis.service.personpaper.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.scirp.ijmis.dao.base.impl.BaseDAOImpl;
import org.scirp.ijmis.dao.personpaper.IPublicationOfPaperDAO;
import org.scirp.ijmis.po.personpaper.PublicationOfPaper;
import org.scirp.ijmis.service.personpaper.IPublicationOfPaperService;

public class PublicationOfPaperServiceImpl implements IPublicationOfPaperService {

	private static final String className = PublicationOfPaperServiceImpl.class.toString();
	private IPublicationOfPaperDAO publicationOfPaperDAO;

	public List<PublicationOfPaper> selectAll() {
		return publicationOfPaperDAO.selectAll();
	}

	public Long countObject() {
		return publicationOfPaperDAO.countObject();
	}

	public PublicationOfPaper selectById(Object id) {
		return publicationOfPaperDAO.selectById(id);
	}

	public long savePublicationOfPaper(PublicationOfPaper entity) {
		return publicationOfPaperDAO.savePublicationOfPaper(entity);
	}

	public boolean updatePublicationOfPaper(PublicationOfPaper entity) {
		return publicationOfPaperDAO.updatePublicationOfPaper(entity);
	}

	public PublicationOfPaper deletePublicationOfPaper(PublicationOfPaper entity) {
		return publicationOfPaperDAO.deletePublicationOfPaper(entity);
	}

	public List<PublicationOfPaper> selectPublicationOfPaperByPaperId(Long paperId) {
		return publicationOfPaperDAO.selectPublicationOfPaperByPaperId(paperId);

	}

	public List<PublicationOfPaper> selectPublicationOfPaperByPublicationId(Long publicationId) {
		return publicationOfPaperDAO.selectPublicationOfPaperByPublicationId(publicationId);
	}

	public IPublicationOfPaperDAO getPublicationOfPaperDAO() {
		return publicationOfPaperDAO;
	}

	public void setPublicationOfPaperDAO(IPublicationOfPaperDAO publicationOfPaperDAO) {
		this.publicationOfPaperDAO = publicationOfPaperDAO;
	}
}
